<template>
    <!--一级菜单nav-->
    <nav class="sidebar-nav-box">
        <el-menu default-active="/agent/index" class="sidebar-menu" router>
            <el-menu-item index="/dashboard/index">
                <i class="icon-dashboard"></i>DASHBOARD
            </el-menu-item>
            <el-menu-item index="/agent/index">
                <i class="icon-sitemap"></i>AGENT
            </el-menu-item>
            <el-menu-item index="/mycruise/index">
                <i class="icon-boat"></i>MY CRUISE
            </el-menu-item>
            <el-menu-item index="/help/index">
                <i class="icon-life-bouy"></i>HELP
            </el-menu-item>
        </el-menu>
        <div class="sidebar-history">
            <h3 class="history-title">History</h3>
            <ul class="history-list">
                <li>bjstdmngbgr0.2/Acceptance_test</li>
                <li>bjstdmngbgr0.2/Acceptance_test</li>
                <li>bjstdmngbgr0.2/Acceptance_test</li>
                <li>bjstdmngbgr0.2/Acceptance_test</li>
                <li>bjstdmngbgr0.2/Acceptance_test_123456789abcdqweqwerqwe</li>
                <li>bjstdmngbgr0.2/Acceptance_test</li>
                <li>bjstdmngbgr0.2/Acceptance_test</li>
                <li>bjstdmngbgr0.2/Acceptance_test</li>
                <li>bjstdmngbgr0.2/Acceptance_test</li>
                <li>bjstdmngbgr0.2/Acceptance_test</li>
                <li>bjstdmngbgr0.2/Acceptance_test</li>
                <li>bjstdmngbgr0.2/Acceptance_test</li>
                <li>bjstdmngbgr0.2/Acceptance_test</li>
                <li>bjstdmngbgr0.2/Acceptance_test</li>
                <li>bjstdmngbgr0.2/Acceptance_test</li>
            </ul>
        </div>
    </nav>
</template>
<script>
export default {
}
</script>

<style scoped>
[class^="icon-"], [class*=" icon-"] {
    font-style: normal;
    font-weight: 400;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    vertical-align: baseline;
    display: inline-block;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.el-menu-item [class^="icon-"] {
    margin-right: 15px;
    width: 24px;
    text-align: center;
    font-size: 20px;
    vertical-align: middle;
    margin-top: -5px;
}

.sidebar-fold {
    width: 100%;
    max-width: 200px;
    height: 30px;
    background: #2d313d;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
}

.sidebar-nav-box {
    position: fixed;
    top: 70px;
    bottom: 30px;
    width: 270px;
    /* transition: width .15s;
    width: 100%; */
    overflow: hidden;
    /* float: left;
    height: 100%; */
    background: #2D4054;
    /* position: relative; */
    color: #ffffff;
    padding-top: 20px;
    padding-bottom: 340px;
}

.sidebar-menu{
    background: transparent;
    max-height: 100%;
    overflow: auto;
}

.sidebar-menu .el-menu-item,
.sidebar-menu .el-menu-item i{
    color: #FAFAFA;
}

.sidebar-nav-box ul {
    width: 100%;
    list-style-type: none;
}

.sidebar-nav-box ul li {
    width: 100%;
    height: 45px;
    cursor: pointer;
    line-height: 45px;
}

.sidebar-nav-box ul li:hover,
.sidebar-nav-box ul li:focus,
.sidebar-nav-box ul li.is-active {
    background: #435466;
    color: #00B4CF;
}

.sidebar-nav-box ul li:hover i,
.sidebar-nav-box ul li:focus i{
    color: #00B4CF;
}

.sidebar-nav-box ul li div {
    width: 56px;
    height: 45px;
    float: left;
    text-align: center;
    line-height: 45px;
}

.sidebar-nav-box ul li div i {
    font-size: 16px;
}

.sidebar-nav-box ul li a {
    display: block;
    height: 50px;
    line-height: 50px;
    color: #ffffff;
    position: relative;
}

.sidebar-nav-box ul li a:hover {
    text-decoration: none;
}

.sidebar-nav-box ul .item-active {
    background: #586077 !important;
}

.sidebar-history{
    width: 100%;
    position: absolute;
    bottom: 0;
}

.history-title{
    font-size: 24px;
    color: #ccc;
    padding: 10px 10px;
}
.sidebar-nav-box .history-list{
    list-style-type: disc;
    list-style: disc;
    max-height: 300px;
    overflow: auto;
}
.sidebar-nav-box .history-list li{
    font-size: 12px;
    color: #999;
    list-style-type: disc;
    list-style: disc;
    margin: 5px 10px;
    height: 20px;
    line-height: 20px;
    width: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-sizing: border-box;
}

.history-list li:hover{
    color: #00B4CF;
}
</style>

